<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <div class="form-group">
        <label for="c-id" class="control-label col-xs-12 col-sm-2">{:__('会员编号')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-id" readonly class="form-control" name="row[id]" type="text" value="{$row.id}"  />
        </div>
    </div>

    {if $type==1}
        <div class="form-group">
            <label for="c-profession_id" class="control-label col-xs-12 col-sm-2">{:__('开通专业')}:</label>
            <div class="col-xs-12 col-sm-4">
                <input id="c-profession_id" data-rule="required" data-source="profession/profession/selectpage" data-primary-key="id" data-field="name" data-multiple="true" data-max-select-limit="10" class="form-control selectpage" name="row[profession_id]" type="text" value="{$row.profession_id}">
            </div>
        </div>
    {else}
        <div class="form-group">
            <label for="c-profession_id" class="control-label col-xs-12 col-sm-2">{:__('开通课程')}:</label>
            <div class="col-xs-12 col-sm-4">
                <input id="c-course_id" data-rule="required" data-source="course/index" data-primary-key="id" data-field="name" data-multiple="true" data-max-select-limit="10" class="form-control selectpage" name="row[course_id]" type="text" value="">
            </div>
        </div>
    {/if}

    <div class="form-group">
        <label for="c-expire" class="control-label col-xs-12 col-sm-2">{:__('到期日期')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-expire" data-rule="required" data-date-format=" YYYY-MM-DD" class="form-control datetimepicker" name="row[expire]" type="text" value="">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
